package commands;

import material.Displayer;

/**
 * Commande destinee a eteindre une led de l'afficheur.
 */
public class ControllerToIHMTurnOffLedCommand implements Command {

	private Displayer displayer;
	private int ledID;
	
	public ControllerToIHMTurnOffLedCommand(Displayer displayer, int ledID) {
		this.displayer = displayer;
		this.ledID = ledID;
	}
	
	@Override
	public void execute() {
		displayer.turnOffLed(ledID);
	}

}
